package org.rupa.core.register;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public abstract class AbstractRegister extends AbstractHttpRegister implements InitializingBean, DisposableBean {
    @Override
    public void destroy() throws Exception {
        unregister(registryInfo.getServiceInfo());
    }

    @Override
    public void afterPropertiesSet() throws Exception {
        register(registryInfo.getServiceInfo());
    }
}
